package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 贾育权~
 * @version 1.0
 */

@Service
@ComponentScan
public interface ShoppingCartService {//抽象的接口对象指向我们的实现类对象
    void add(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> showShoppingCart();

    void clean();

    void sub(ShoppingCartDTO shoppingCartDTO);
    //对象也叫做组件对象也叫做组件
}
